package org.yxjme.exjni_two.u;

import android.content.Context;
import android.os.Environment;

import java.io.File;

public class SdcardUtil {



    public static String getRootFilePath(Context context){
        String path ;
        if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)){
            path = Environment.getExternalStorageDirectory().getAbsolutePath();
        }else {
            path=context.getFilesDir().getPath() ;
        }

        File fileVideo= new File(path+"/AAA_RecordVideo");
        if (!fileVideo.exists()){
            fileVideo.mkdir() ;
        }
        return fileVideo.getPath() ;
    }

}
